package com.wicket.okrbff.biz.service.dto.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffPositionDto
 * @使用场景
 */
@Data
public class BffPositionDto implements Serializable {

    /**
     * 职务ID:
     */
    @ApiModelProperty("职务ID")
    private String positionId;

    /**
     * 冗余职务名称:
     */
    @ApiModelProperty("冗余职务名称")
    private String positionIdName;
    /**
     * 组织职务关系ID:
     */
    @ApiModelProperty("组织职务关系ID")
    private String orgPositionRelationshipId;
    /**
     * 职务编号:
     */
    @ApiModelProperty("职务编号")
    private String positionNumber;
    /**
     * 职务级别名称:
     */
    @ApiModelProperty("职务级别名称")
    private String positionGradeName;

    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      BffPositionDto that = (BffPositionDto) o;
      return  positionId == that.positionId&&positionIdName == that.positionIdName&&orgPositionRelationshipId == that.orgPositionRelationshipId&&positionNumber == that.positionNumber&&positionGradeName == that.positionGradeName;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), positionId,positionIdName,orgPositionRelationshipId,positionNumber,positionGradeName);
    }

}
